<template>
	<view>
		<view class="custom-navbar" :style="{ paddingTop: safeAreaInsets.top + 'px' }">
			<view class="return-icon" @click="goBack()">
				<text class="iconfont icon-fanhui"></text>
			</view>

			<view class="navbar-title">
				<slot name="name"></slot>
			</view>
		</view>
	</view>
</template>

<script setup>
	const { safeAreaInsets } = uni.getSystemInfoSync()
	const goBack=()=>{
		uni.navigateBack()
		console.log('返回')
	}
</script>